const express = require('express');
const app = express();

app.post('/login',(req, res, next)=>{
    console.log('first middleware exec~');
    req.age = 99;
    next();
});

app.use((req, res, next)=>{
    console.log('second middleware exec~');
});

app.listen(9000, ()=>{
    console.log('Express服务器启动成功~');
});